#include "creflection.h"
#include <QDebug>

CReflection::CReflection(QObject *parent) : QObject(parent)
{
    connect(this, &CReflection::sig_nameTextChange, this, &CReflection::on_sigNameTextChange);
}

void CReflection::on_sigNameTextChange()
{
    //
    qDebug() << __FUNCTION__ << ":: be called!";
}

void CReflection::func1()
{
    qDebug() << __FUNCTION__ << ":: be called!";
}

QString CReflection::getName()
{
    return m_strRefNameVal;
}

void CReflection::setName(const QString &text)
{
    if (text == m_strRefNameVal) {
        return;
    }

    m_strRefNameVal = text;

    emit sig_nameTextChange();
}
